//
//  DDCommentTableCell.m
//  Dingdong
//
//  Created by 程强 on 16/12/5.
//  Copyright © 2016年 程强. All rights reserved.
//

#import "DDCommentTableCell.h"

@implementation DDCommentTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _starView = [[XHStarRateView alloc]initWithFrame:CGRectMake(0, 0, 70, 10) numberOfStars:5 rateStyle:WholeStar isAnination:NO finish:^(CGFloat currentScore) {
        
    }];
    _starView.userInteractionEnabled = NO;
    [self.starBgView addSubview:_starView];
    
    self.zanBgView.layer.borderColor = RGBColor(243, 243, 243).CGColor;
    self.zanBgView.layer.borderWidth = 1.0;
    self.zanBgView.layer.cornerRadius = 3.0;
    
    self.comBgView.layer.borderColor = RGBColor(243, 243, 243).CGColor;
    self.comBgView.layer.borderWidth = 1.0;
    self.comBgView.layer.cornerRadius = 3.0;
    
    self.galleryView = [[DDCommentGalleryView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth-20, 75)];
    [self.imgBgView addSubview:_galleryView];
    
    self.photoIcon.layer.cornerRadius = self.photoIcon.bounds.size.height/2.0;
    self.photoIcon.clipsToBounds = YES;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
